import BaseHttp from "./BaseHttp"

export default class Upload extends BaseHttp {
    constructor() {
        super()//在构造函数中使用父类的构造函数
    }

    
    // ······················上传用户头像开始························
    async UploadUserPic(data,token) {
        const targetToken="Bearer "+token
        return (await this.postWithParams('Upload/UserPic',data,{
            Authorization:targetToken
        }))
    }
    // ······················上传用户头像结束························


    // ······················上传新闻大图开始························
    async UploadNewsTitlePic(data,token) {
        const targetToken="Bearer "+token
        return (await this.postWithParams('Upload/NewsTitlePic',data,{
            Authorization:targetToken
        }))
    }
    // ······················上传新闻大图结束························


}